package com.warmheart.builder.sys;

import com.warmheart.core.co.base.BaseCoBuilder;
import com.warmheart.core.co.oper.Co;
import com.warmheart.entity.sys.SysConfig;

/**
 * 
 * @ClassName: SysConfig
 * @Description: 参数配置实体CoBuilder类，对应表名称为tb_sys_config
 *               温馨提示：不要修改该实体CoBuilder类的任何字段
 * @author ZhangJianyang
 * @date 2025-06-16 09:37:02
 *
 */
public class SysConfigCoBuilder extends BaseCoBuilder<SysConfig, SysConfigCoBuilder> {

    private final SysConfig t;

    @Override
    protected SysConfigCoBuilder self() {
        return this;
    }

    @Override
    public SysConfig core() {
        return this.t;
    }

    public SysConfigCoBuilder(SysConfig sysConfig) {
        t = sysConfig;
    }

    /**
     * 配置参数键
     */
    private Co<SysConfig, SysConfigCoBuilder> configKey;

    /**
     * 配置参数值
     */
    private Co<SysConfig, SysConfigCoBuilder> configValue;

    public Co<SysConfig, SysConfigCoBuilder> configKey() {
        if (this.configKey == null) {
            this.configKey = new Co<SysConfig, SysConfigCoBuilder>(self(), "config_key");
        }
        return this.configKey;
    }

    public Co<SysConfig, SysConfigCoBuilder> configValue() {
        if (this.configValue == null) {
            this.configValue = new Co<SysConfig, SysConfigCoBuilder>(self(), "config_value");
        }
        return this.configValue;
    }
}